package com.emptyMe.basic.utils;

import java.util.concurrent.ThreadLocalRandom;

public class StrUtils {

    public static String getComplexRandomString(Integer num){
        String str = "0123456789qwertyuioplkjhgfdsazxcvbnmQWERTYUIOPLKJHGFDSAZXCVBNM";
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < num; i++) {
            sb.append(ThreadLocalRandom.current().nextInt(0,str.length()));
        }
        return sb.toString();
    }
}
